<?php 

namespace app\token\controller;

use app\token\controller\TokenCore;
use app\user\controller\AdminUserLogic;

class TokenLogic {
	/**
	 * 验证录音笔Token - Logic
	 */
	public static function verifyRecordpenTokenLogic($token) {
        $cache = cache('Front_' . $token);
        // 校验sessionid和authKey
        if (empty($token) || empty($cache) || !$cache) {
            // header('Content-Type:application/json; charset=utf-8');
            // exit(json_encode(['code' => 104, 'error' => '登录已失效']));
            return operationRes(false, 'Verify Failed');
        }
        return operationRes(false, 'verify Successful', $cache);
	}
}